package ex2.employee;

public class CEmployeeBlockPrinter {
	
	
	public void printRegularEmployee(IEmployee employee){

		String tAnswer = "";
		tAnswer = tAnswer.concat("code: "+ employee.getEmployeeCode());
		tAnswer = tAnswer.concat("\n");
		tAnswer = tAnswer.concat("username: "+ employee.getUsername());
		tAnswer = tAnswer.concat("\n");
		tAnswer = tAnswer.concat("firstName: "+ employee.getFirstName());
		tAnswer = tAnswer.concat("\n");		
		tAnswer = tAnswer.concat("Surname: "+ employee.getLastName());
		tAnswer = tAnswer.concat("\n");	
		tAnswer = tAnswer.concat("salary: "+ employee.getSalary());
		tAnswer = tAnswer.concat("\n");
		
		
		System.out.println(tAnswer);
	}
	
	public void printManager(IEmployee employee){

		
		String tAnswer = "";
		tAnswer = tAnswer.concat("code: "+ employee.getEmployeeCode());
		tAnswer = tAnswer.concat("\n");
		tAnswer = tAnswer.concat("username: "+ employee.getUsername());
		tAnswer = tAnswer.concat("\n");
		tAnswer = tAnswer.concat("firstName: "+ employee.getFirstName());
		tAnswer = tAnswer.concat("\n");		
		tAnswer = tAnswer.concat("Surname: "+ employee.getLastName());
		tAnswer = tAnswer.concat("\n");	
		tAnswer = tAnswer.concat("salary: "+ employee.getSalary());
		tAnswer = tAnswer.concat("\n");
		tAnswer = tAnswer.concat("subordinates: "+ employee.getSubordinates());
		tAnswer = tAnswer.concat("\n");
		
		System.out.println(tAnswer);
	}
	
	public void printSpecialist(IEmployee employee){

		
		String tAnswer = "";
		tAnswer = tAnswer.concat("code: "+ employee.getEmployeeCode());
		tAnswer = tAnswer.concat("\n");
		tAnswer = tAnswer.concat("username:: "+ employee.getUsername());
		tAnswer = tAnswer.concat("\n");
		tAnswer = tAnswer.concat("firstName: "+ employee.getFirstName());
		tAnswer = tAnswer.concat("\n");		
		tAnswer = tAnswer.concat("Surname: "+ employee.getLastName());
		tAnswer = tAnswer.concat("\n");	
		tAnswer = tAnswer.concat("salary: "+ employee.getSalary());
		tAnswer = tAnswer.concat("\n");
		tAnswer = tAnswer.concat("equipment: "+ employee.getEquipment());
		tAnswer = tAnswer.concat("\n");
		
		System.out.println(tAnswer);
	}


}
